package com.anta.crm.codegen.generator;

import com.anta.crm.codegen.constants.CodeGenConst;
import org.mybatis.generator.codegen.AbstractXmlGenerator;
import org.mybatis.generator.codegen.mybatis3.javamapper.SimpleJavaClientGenerator;
import org.mybatis.generator.codegen.mybatis3.xmlmapper.SimpleXMLMapperGenerator;

public class CustomerSimpleJavaClientGenerator extends SimpleJavaClientGenerator {
    public CustomerSimpleJavaClientGenerator() {
        // 不改源码的话，这个注释要打开，因为xml 里配置的javaClientGenerator targetProject 无效
//        super(CodeGenConst.mapperGenGroject);
        super(null);
    }

    @Override
    public AbstractXmlGenerator getMatchedXMLGenerator() {
        return new CustomerXMLMapperGenerator();
    }
}
